﻿//-----------------------------------------------------------------------
// <author>Paul Long</author>
//-----------------------------------------------------------------------

namespace NMTopUsers
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    /// <summary>
    /// Shows the help file for NMTopUsers.
    /// </summary>
    public partial class GenHelp : Form
    {
        /// <summary>
        /// Show Endpoint Doc or Conversation Doc?
        /// </summary>
        private bool endpoint;

        /// <summary>
        /// Initializes a new instance of the GenHelp class.
        /// </summary>
        /// <param name="endpoint">Endpoint or conversation?</param>
        public GenHelp(bool endpoint)
        {
            this.endpoint = endpoint;

            this.InitializeComponent();
        }

        /// <summary>
        /// Displays the topusers RTF file.
        /// </summary>
        /// <param name="sender">Sender Object</param>
        /// <param name="e">Event Arguments</param>
        private void GenHelp_Shown(object sender, EventArgs e)
        {
            try
            {
                this.GenHelprichTextBox.LoadFile("TopUsers.rtf");
            }
            catch (Exception ex)
            {
                this.Close();
                MessageBox.Show(ex.Message);
            }
        }
    }
}
